home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '92 / Hacks ’92 / Procedure Call Logger / ReadMe < prev    next >
Encoding:
Text File  |  1992-06-18  |  687 b   |  16 lines  |  [TEXT/MPS ]

  1. Procedure Call Logger:
  2.  
  3. Author: Marshall Clow
  4.  
  5. This is a library that replaces the MPW profiling library and provides
  6. a breakpoint at every procedure entry / exit. At these points, the library
  7. calls a user-defined procedure “BreakHere”, which determines whether or not
  8. to break. If BreakHere returns true, then the library executes a DebugStr,
  9. where the str is either "Enter: <procedure names>" or "Exit: <procedure name>".
  10.  
  11. How it works:
  12.     When you compile code with the MPW C or Pascal compilers, and specify
  13. -trace on, the compilers emit a call to %_BP at the beginning of each procedure
  14. and a call to %_EP at the end. I wrote alternate versions of these routines to
  15. do what I wanted.
  16.